import { defineStore } from 'pinia'
import { ref } from 'vue'

export default defineStore('app', () => {
  const sidebarLogo = true
  const isCollapse = true // 是否需要菜单折叠collapse

  const collapse = ref(false)
  const toggleCollapse = () => {
    collapse.value = !collapse.value
  }

  return {
    sidebarLogo,
    isCollapse,
    collapse,
    toggleCollapse
  }
})
